package cn.lngaosu.lwyd.module.integration.controller.admin.weixinarticle.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.lngaosu.lwyd.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.lngaosu.lwyd.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 微信文章分页 Request VO")
@Data
public class WeixinArticlePageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "成功发布的图文消息id")
    private String articleId;

    @Schema(description = "图文消息的标题")
    private String title;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "图文消息的摘要，仅有单图文消息才有摘要，多图文此处为空。")
    private String digest;

    @Schema(description = "图文消息的具体内容，支持HTML标签，必须少于2万字符，小于1M，且此处会去除JS。")
    private String content;

    @Schema(description = "图文消息的原文地址，即点击“阅读原文”后的URL")
    private String contentSourceUrl;

    @Schema(description = "图文消息的封面图片素材id（一定是永久MediaID）")
    private String thumbMediaId;

    @Schema(description = "是否显示封面，0为false，即不显示，1为true，即显示(默认)")
    private Integer showCoverPic;

    @Schema(description = "Uint32 是否打开评论，0不打开(默认)，1打开")
    private Integer needOpenComment;

    @Schema(description = "Uint32 是否粉丝才可评论，0所有人可评论(默认)，1粉丝才可评论")
    private Integer onlyFansCanComment;

    @Schema(description = "图文消息的URL")
    private String url;

    @Schema(description = "该图文是否被删除")
    private Integer isDeleted;

    @Schema(description = "图文创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] articleCreateTime;

    @Schema(description = "这篇图文消息素材的最后更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] articleUpdateTime;

}